package com.yodawnla.fishing;

import com.yodawnla.fishing.system.Values;

public class FishSpotMgr
{
	public static FishSpotMgr getInstance()
	{
		if (instance == null)
			instance = new FishSpotMgr();
		return instance;
	}

	static FishSpotMgr instance;

	public FishSpotMgr()
	{

	}

	public FishSpot generateFishSpot(int fishSpotType)
	{
		FishSpot fishSpot = new FishSpot(fishSpotType);
		switch (fishSpotType)
		{
		case 0:
			fishSpot.addFishType(Values.ID.Fish0, 20, 30);
			fishSpot.addFishType(Values.ID.Fish1, 30, 40);
			fishSpot.addFishType(Values.ID.Fish2, 30, 40);
			fishSpot.addFishType(Values.ID.Fish3, 40, 50);
			fishSpot.addFishType(Values.ID.Fish4, 50, 100);
			fishSpot.addFishType(Values.ID.Fish5, 50, 100);
			fishSpot.addFishType(Values.ID.Fish6, 50, 100);
			 
			break;
		case 1:
			fishSpot.addFishType(Values.ID.Fish0, 20, 30);
			fishSpot.addFishType(Values.ID.Fish1, 30, 40);
			fishSpot.addFishType(Values.ID.Fish2, 30, 40);
			fishSpot.addFishType(Values.ID.Fish3, 40, 50);
			fishSpot.addFishType(Values.ID.Fish4, 50, 100);
			fishSpot.addFishType(Values.ID.Fish5, 50, 100);
			fishSpot.addFishType(Values.ID.Fish6, 50, 100);
			
			fishSpot.addSpotUnlockData(Values.ID.Fish0, 10);
			break;
		case 2:
			fishSpot.addFishType(Values.ID.Fish0, 20, 30);
			fishSpot.addFishType(Values.ID.Fish1, 30, 40);
			fishSpot.addFishType(Values.ID.Fish2, 30, 40);
			fishSpot.addFishType(Values.ID.Fish3, 40, 50);
			fishSpot.addFishType(Values.ID.Fish4, 50, 100);
			fishSpot.addFishType(Values.ID.Fish5, 50, 100);
			fishSpot.addFishType(Values.ID.Fish6, 50, 100);
			
			fishSpot.addSpotUnlockData(Values.ID.Fish2, 50);
			break;
		case 3:
			fishSpot.addFishType(Values.ID.Fish0, 20, 30);
			fishSpot.addFishType(Values.ID.Fish1, 30, 40);
			fishSpot.addFishType(Values.ID.Fish2, 30, 40);
			fishSpot.addFishType(Values.ID.Fish3, 40, 50);
			fishSpot.addFishType(Values.ID.Fish4, 50, 100);
			fishSpot.addFishType(Values.ID.Fish5, 50, 100);
			fishSpot.addFishType(Values.ID.Fish6, 50, 100);
			
			fishSpot.addSpotUnlockData(Values.ID.Fish3, 50);
			break;
		case 4:
			fishSpot.addFishType(Values.ID.Fish0, 20, 30);
			fishSpot.addFishType(Values.ID.Fish1, 30, 40);
			fishSpot.addFishType(Values.ID.Fish2, 30, 40);
			fishSpot.addFishType(Values.ID.Fish3, 40, 50);
			fishSpot.addFishType(Values.ID.Fish4, 50, 100);
			fishSpot.addFishType(Values.ID.Fish5, 50, 100);
			fishSpot.addFishType(Values.ID.Fish6, 50, 100);
			
			fishSpot.addSpotUnlockData(Values.ID.Fish4, 50);
			break;
		case 5:
			fishSpot.addFishType(Values.ID.Fish0, 20, 30);
			fishSpot.addFishType(Values.ID.Fish1, 30, 40);
			fishSpot.addFishType(Values.ID.Fish2, 30, 40);
			fishSpot.addFishType(Values.ID.Fish3, 40, 50);
			fishSpot.addFishType(Values.ID.Fish4, 50, 100);
			fishSpot.addFishType(Values.ID.Fish5, 50, 100);
			fishSpot.addFishType(Values.ID.Fish6, 50, 100);
			
			fishSpot.addSpotUnlockData(Values.ID.Fish5, 50);
			break;
		case 6:
			fishSpot.addFishType(Values.ID.Fish0, 20, 30);
			fishSpot.addFishType(Values.ID.Fish1, 30, 40);
			fishSpot.addFishType(Values.ID.Fish2, 30, 40);
			fishSpot.addFishType(Values.ID.Fish3, 40, 50);
			fishSpot.addFishType(Values.ID.Fish4, 50, 100);
			fishSpot.addFishType(Values.ID.Fish5, 50, 100);
			fishSpot.addFishType(Values.ID.Fish6, 50, 100);
			
			fishSpot.addSpotUnlockData(Values.ID.Fish6, 50);
			break;
		case 7:
			fishSpot.addFishType(Values.ID.Fish0, 20, 30);
			fishSpot.addFishType(Values.ID.Fish1, 30, 40);
			fishSpot.addFishType(Values.ID.Fish2, 30, 40);
			fishSpot.addFishType(Values.ID.Fish3, 40, 50);
			fishSpot.addFishType(Values.ID.Fish4, 50, 100);
			fishSpot.addFishType(Values.ID.Fish5, 50, 100);
			fishSpot.addFishType(Values.ID.Fish6, 50, 100);
			
			fishSpot.addSpotUnlockData(Values.ID.Fish5, 100);
			fishSpot.addSpotUnlockData(Values.ID.Fish6, 100);
			break;
		case 8:
			fishSpot.addFishType(Values.ID.Fish0, 20, 30);
			fishSpot.addFishType(Values.ID.Fish1, 30, 40);
			fishSpot.addFishType(Values.ID.Fish2, 30, 40);
			fishSpot.addFishType(Values.ID.Fish3, 40, 50);
			fishSpot.addFishType(Values.ID.Fish4, 50, 100);
			fishSpot.addFishType(Values.ID.Fish5, 50, 100);
			fishSpot.addFishType(Values.ID.Fish6, 50, 100);
			
			fishSpot.addSpotUnlockData(Values.ID.Fish5, 200);
			fishSpot.addSpotUnlockData(Values.ID.Fish6, 200);
			break;
		case 9:
			fishSpot.addFishType(Values.ID.Fish0, 20, 30);
			fishSpot.addFishType(Values.ID.Fish1, 30, 40);
			fishSpot.addFishType(Values.ID.Fish2, 30, 40);
			fishSpot.addFishType(Values.ID.Fish3, 40, 50);
			fishSpot.addFishType(Values.ID.Fish4, 50, 100);
			fishSpot.addFishType(Values.ID.Fish5, 50, 100);
			fishSpot.addFishType(Values.ID.Fish6, 50, 100);
			
			fishSpot.addSpotUnlockData(Values.ID.Fish5, 300);
			fishSpot.addSpotUnlockData(Values.ID.Fish6, 300);
			break;

		default:
			break;
			
		} 
		return fishSpot;
	}
}
